
import { DTaroAjax } from '@/http/http'

const base = '/api/cookcar-my'

const cookMy = {
    getmyTracks(params) {
        return DTaroAjax(`${base}/my/footprint/list`, params)
    },
    getmyCollecticon(params) {
        return DTaroAjax(`${base}/my/collection/carList`, params)
    },
    getmyEntry(params) {
        return DTaroAjax(`${base}/my/collection/companyList`, params)
    },
    addmyCarCollect(params) {
        return DTaroAjax(`${base}/my/collection/save`, params, 'POST', false)
    },
    delmyCarCollect(params) {
        return DTaroAjax(`${base}/my/collection/del`, params, 'POST', false)
    },
    isCollect(params) {
        return DTaroAjax(`${base}/my/collection/checkIsCollection/?id=${params}`, {}, 'POST')
    },
    getFootprint(params) {
        return DTaroAjax(`${base}/my/footprint/save`, params, 'POST')
    },
    delFootprint(params){
        return DTaroAjax(`${base}/my/footprint/del`, params, 'POST')
    },
    checkIsFootprint(params){
        return DTaroAjax(`${base}/my/footprint/checkIsFootprint?id=${params}`, {}, 'POST')
    }
}

export default cookMy
